<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    test网页<br>
    姓名：<span th:text="${name}"></span><br>
    年龄：<span th:text="${age}"></span><br>
    <span th:if="${age >= 18}">你已成年</span>
    <span th:if="${age < 18}">你还是小屁孩</span>
    <hr>
    用户编号：<span th:text="${user.id}"></span><br>
    用户名：<span th:text="${user.name}"></span><br>
    电话： <input name="phone" th:value="${user.phone}">

    <table border="1" cellspacing="0" width="60%">
        <thead>
            <tr><th>编号</th><th>姓名</th><th>电话</th><th>操作</th></tr>
        </thead>
        <tbody>
            <tr th:each="obj : ${userList}">
                <td th:text="${obj.id}"></td>
                <td th:text="${obj.name}"></td>
                <td th:text="${obj.phone}"></td>
                <td>
                    <a th:href="@{/del(id=${obj.id})}">删除</a>
                </td>
            </tr>
        </tbody>
    </table>
</body>
</html>